
 
 L o a d   " T h e r e m i n o _ H A L \ T h e r e m i n o _ S i g n a l S c o p e . e x e " 
 
 L o a d   " T h e r e m i n o _ H A L \ T h e r e m i n o _ H a l . e x e " 
 
 L o a d   " T h e r e m i n o _ H A L \ T h e r e m i n o _ S l o t V i e w e r . e x e " 
 
 
 
 B u t t o n   2   T e x t   A b o r t S e w i n g 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t X   =   1 
 
 V a r i a b l e   N u m e r i c   S l o t Y   =   3 
 
 V a r i a b l e   N u m e r i c   S l o t Z   =   5 
 
 V a r i a b l e   N u m e r i c   S l o t S e w S c o p e R e s t a r t   =   2 9 
 
 V a r i a b l e   N u m e r i c   S l o t S i g n a l S c o p e R u n   =   9 9 
 
 
 
 '   S t o p A n g l e   c o u l d   b e   u s e d   i n   t h e   f u t u r e   v e r s i o n s 
 
 V a r i a b l e   N u m e r i c   S t o p A n g l e   =   9 0 
 
 
 
 '   S t a r t A n g l e   c a n   b e   s e t   f r o m   2 7 0   t o   3 5 0   d e p e n d i n g   f r o m   H A L   a c c e l l e r a t i o n s 
 
 V a r i a b l e   N u m e r i c   S t a r t A n g l e   =   2 7 0 + 8 0 
 
 
 
 V a r i a b l e   N u m e r i c   X m a x   =   9 0 0 
 
 V a r i a b l e   N u m e r i c   X m i n   =   0 
 
 V a r i a b l e   N u m e r i c   Y m a x   =   9 0 0 
 
 V a r i a b l e   N u m e r i c   Y m i n   =   0 
 
 V a r i a b l e   N u m e r i c   M a x P e r S e c   =   2 0 
 
 
 
 S e w I n i t   S l o t X   S l o t Y   S l o t Z   S t o p A n g l e   S t a r t A n g l e 
 
 
 
 S e w L i m i t s   X m i n   X m a x   Y m i n   Y m a x   M a x P e r S e c 
 
 
 
 S t a r t S c o p e s 
 
 ' T e s t C i r c l e L e o 
 
 ' R e c t a n g l e F a s t 
 
 ' R e c t a n g l e 
 
 ' C i r c l e 
 
 T e s t B z z 
 
 
 
 S t o p S c o p e s 
 
 
 
 S t o p 
 
 
 
 L a b e l   A b o r t S e w i n g 
 
 	 S e w A b o r t 
 
 S t o p 
 
 
 
 L a b e l   S t a r t S c o p e s 
 
 	 S l o t   S l o t S i g n a l S c o p e R u n   =   1 0 0 0 
 
 	 S l o t   S l o t S e w S c o p e R e s t a r t   =   1 0 0 0 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t   S l o t S e w S c o p e R e s t a r t   =   0 
 
 R e t u r n 
 
 
 
 L a b e l   S t o p S c o p e s 
 
 	 S l o t   S l o t S i g n a l S c o p e R u n   =   0 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '       W a i t   u n t i l   a l l   m o t o r s   a r e   s t o p p e d 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   W a i t A l l M o t o r s 
 
 	 W a i t   S e c o n d s   0 . 0 5 
 
 	 V a r i a b l e   N u m e r i c   W M 1 
 
 	 F o r   W M 1   =   1   T o   9 e 9 9 
 
 	 	 I f   A b s ( S l o t ( S l o t X   +   1 ) )   <   0 . 0 1 
 
 	 	 	 I f   A b s ( S l o t ( S l o t Y   +   1 ) )   <   0 . 0 1 
 
 	 	 	 	 I f   A b s ( S l o t ( S l o t Z   +   1 ) )   <   0 . 0 1 
 
 	 	 	 	 	 E x i t 
 
 	 	 	 	 E n d I f 
 
 	 	 	 E n d I f 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 0 0 1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   W a i t S e w P r o g r e s s 
 
 	 V a r i a b l e   N u m e r i c   w s p 1 
 
 	 F o r   w s p 1   =   1   T o   I n f i n i t y 
 
 	 	 I f   S e w P r o g r e s s   <   0 
 
 	 	 	 w s p 1   =   S e w P r o g r e s s 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 	 P r i n t   I n t ( A b s ( S e w P r o g r e s s )   *   1 0 0 )   +   " % " 
 
 	 	 ' P r i n t   M o d ( S l o t ( S l o t _ M o t o r Z ) , 1 ) 
 
 	 N e x t 
 
 	 G o s u b   W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   C i r c l e 
 
 	 ' S l o t ( S l o t Z )   =   0 
 
 	 ' 
 
 	 ' S e w T o   1   1   5 0 0   0   " " 
 
 	 ' G o s u b   W a i t S e w P r o g r e s s 
 
 	 ' 
 
 	 ' v 1   =   E l a p s e d T i m e 
 
 	 
 
 	 ' S e w T o   1 0 1   8 1   2 0   5   " z i g z a g = 2 " 
 
 	 ' G o s u b   W a i t S e w P r o g r e s s 
 
 	 
 
 	 S e w T o   5 0   3 0   1 0 0   0   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 ' S e w T o   5 0   5 0   2 0   3   " R a d i u s = 1 5 . 9 2 " 
 
 	 S e w T o   5 0   3 0   3 0   3   " R a d i u s = 5 " '   z i g z a g = 4 " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 
 
 	 ' v 2   =   E l a p s e d T i m e 
 
 	 ' 
 
 	 ' S e w T o   1   1   5 0 0   0   " " 
 
 	 ' G o s u b   W a i t S e w P r o g r e s s 
 
 	 ' 
 
 	 ' P r i n t   F o r m a t ( v 2   -   v 1 ,   " 0 . 0 0 0 " )   +   "   s e c . " 
 
 	 
 
 	 S e w T o   3   3   1 0 0   0   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 R e t u r n 
 
 
 
 L a b e l   R e c t a n g l e 
 
 	 S e w T o   1 0   1 0   1 0 0   0   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 
 
 	 S e w T o   1 2   1 0   2 0   2   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 S e w T o   1 0   1 0   2 0   2   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 S e w T o   1 2   1 0   2 0   2   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 S e w T o   1 0   1 0   2 0   2   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 
 
 	 S e w T o   4 0   1 0   2 0   4   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 S e w T o   4 0   3 0   2 0   4   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 S e w T o   1 0   3 0   2 0   4   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 S e w T o   1 0   1 0   2 0   4   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 
 
 	 S e w T o   1 0   1 2   2 0   2   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 S e w T o   1 0   1 0   2 0   2   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 S e w T o   1 0   1 2   2 0   2   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 S e w T o   1 0   1 0   2 0   2   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 
 
 	 S e w T o   3   3   1 0 0   0   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 R e t u r n 
 
 
 
 L a b e l   R e c t a n g l e F a s t 
 
 	 ' S e w T o   1 0   1 0   1 0 0   0   " " 
 
 	 ' G o s u b   W a i t S e w P r o g r e s s 
 
 	 
 
 	 S e w T o   2 0   1 0   1 0   1   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 S e w T o   2 0   2 0   2 0   2   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 S e w T o   1 0   2 0   4 0   4   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 S e w T o   1 0   1 0   2 0   5   " " 
 
 	 G o s u b   W a i t S e w P r o g r e s s 
 
 	 
 
 	 ' S e w T o   3   3   1 0 0   0   " " 
 
 	 ' G o s u b   W a i t S e w P r o g r e s s 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     S P E E D   L I M I T S 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     W I T H   X Y   a c c e l e r a t i o n   =   6 0 0 0 
 
 '       A N D     Z   a c c e l e r a t i o n   =     3 2 0 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     T h e   m a x   l i n e a r   s p e e d   i s   2 0   o r   3 0   m m / s 
 
 '     T h e   m a x   s t i t c h   s p e e d   i s   1 0   o r   1 5   s t . / s 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     S I M P L I F I E D   T A B L E 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '   S t e p         S p e e d   M a x         S p e e d   M a x   w i t h   e r r o r s 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     1                   1 0                   1 5 
 
 '     2                   2 0                   3 0 
 
 '     > 2                 2 0                   3 0 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 
 
 L a b e l   T e s t C i r c l e L e o 
 
 	 ' S e w T o     7 0       6 0       1 0 0         0         " "         ' j u m p   t o   c e n t e r 
 
 	 ' S e w T o     7 0       3 5       1 0 0         0         " "         ' j u m p   t o   c e n t e r 
 
 	 W a i t S e w P r o g r e s s 
 
 	 S e w T o     7 0       3 5         2 0         4         " R a d i u s = 2 5 " 
 
 	 W a i t S e w P r o g r e s s 
 
 	 S e w T o     7 0       3 5         2 0         4         " R a d i u s = 2 0 " 
 
 	 W a i t S e w P r o g r e s s 
 
 	 S e w T o     7 0       3 5         2 0         4         " R a d i u s = 1 5 " 
 
 	 W a i t S e w P r o g r e s s 
 
 	 S e w T o     7 0       3 5         2 0         4         " R a d i u s = 1 0 " 
 
 	 W a i t S e w P r o g r e s s 
 
 	 S e w T o     7 0       3 5         2 0         4         " R a d i u s = 5 " 
 
 	 W a i t S e w P r o g r e s s 
 
 	 ' 
 
 	 S e w T o               3         3       1 0 0         0         " "           ' j u m p   t o   s a f e   p l a c e 
 
 	 W a i t S e w P r o g r e s s 
 
 R e t u r n 
 
 
 
 L a b e l   T e s t B z z 
 
 	 S e w T o               3         3       1 0 0         0         " "           ' j u m p   t o   s a f e   p l a c e 
 
 	 W a i t S e w P r o g r e s s 
 
 	 
 
 	 S e w T o     7 0       3 5         2 0         4       " " 
 
 	 W a i t S e w P r o g r e s s 
 
 R e t u r n 
 
 
 
 
 
 ' W A T C H   S e w T o _ S p e e d 
 
 ' E X E C   B u t t o n   5   T e x t   B u t t o n 5 
 
 